#pragma once
#include "ProgressDialog.h"
class ComPortHandler;
class GraphicArea : public CStatic
{
	DECLARE_DYNAMIC(GraphicArea)
public:
	GraphicArea(ComPortHandler& comHandler );
	virtual ~GraphicArea();

protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg BOOL		OnEraseBkgnd(CDC* pDC);
	afx_msg void		OnPaint();
	afx_msg int			OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void		OnSize(UINT nType, int cx, int cy);
	afx_msg BOOL		OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
//////////////////////////////////////////////////////////////////////////
private:
	ProgressDialog*		m_pProgressDlg;
public:
	ComPortHandler&		curComHandler;
	CClientDC*			m_pDC;
//////////////////////////////////////////////////////////////////////////
protected:
	afx_msg void		OnTimer(UINT_PTR nIDEvent);
	afx_msg void		OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void		OnPopmenuLoadmodel();
	afx_msg void		OnPopmenuDefaultmodel();
};


